package com.ai.aicontact.core.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by wangluyin on 16/5/26.
 */
@Controller
public class CoreController {

	@RequestMapping("/{jspname}")
	public String web(@PathVariable("jspname") String jspname) {
		return "/" + jspname;
	}
//
//	@RequestMapping("/{root}/{subpath1}")
//	public String web(@PathVariable("root") String root, @PathVariable("subpath1") String subpath1) {
//		return "/" + root + "/" + subpath1;
//	}
//
//	@RequestMapping("/{root}/{subpath1}/{subpath2}")
//	public String web(@PathVariable("root") String root, @PathVariable("subpath1") String subpath1,
//			@PathVariable("subpath2") String subpath2) {
//		return "/" + root + "/" + subpath1 + "/" + subpath2;
//	}
}
